package custcare

import (
	uuid "github.com/satori/go.uuid"
	"wave-admin/model"
)

type CusVisitor struct {
	model.GnModel
	UUID      uuid.UUID        `gorm:"default:'';index:idx_uuid;not null;comment:客户UUID" json:"uuid"`
	AdminId   uint64           `gorm:"default:0;index:idx_admin_id;not null;comment:管理员id" json:"admin_id"`
	Online    uint8            `gorm:"default:0;index:online;not null;comment:是否在线：0-否 1-是" json:"online"`
	Nickname  string           `gorm:"type:varchar(50);null;default:'';comment:昵称" json:"nickname"`
	Avatar    string           `gorm:"type:varchar(100);null;default:'';comment:头像" json:"avatar"`
	ClientIp  string           `gorm:"type:varchar(15);index:idx_client_ip;null;default:'';comment:客户ip地址" json:"client_ip"`
	Province  string           `gorm:"type:varchar(50);index:idx_province;null;default:'';comment:省" json:"province"`
	City      string           `gorm:"type:varchar(50);index:idx_city;null;default:'';comment:城市" json:"city"`
	Status    uint8            `gorm:"default:1;index:idx_status;not null;comment:状态：1-正常 2-停用" json:"status"`
	IsIpBlack uint8            `gorm:"-" json:"is_ip_black"`
	Detail    CusVisitorDetail `gorm:"-" json:"detail"`
}
